package zxj.spay.base;

import javax.servlet.http.HttpServletRequest;

import zxj.spay.base.resource.SessionName;
import zxj.spay.entity.User;

public class Context {

	/**
	 * 获取用户登陆的信息
	 * @param request
	 * @return
	 */
	protected User getUser(HttpServletRequest request){
		User user = (User)request.getSession().getAttribute(SessionName.USER);
		return user;
	}
}
